/*
 *	Copyright (C) 2008 - Mauricio Bieze Stefani
 *	This file is part of the Insano Game Engine.
 *
 *	Insano is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *
 *	Insano is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with Insano.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef CONFIG__H_INCLUDED
#define CONFIG__H_INCLUDED

#include <irrlicht.h>
#include "Protocolo.h"

class ClientConfig
{
public:
	class Video
	{
		public:
			int horizontal;	//deve ser int por causa do TinyXML
			int vertical;	//deve ser int por causa do TinyXML
			int bpp;		//deve ser int por causa do TinyXML
			bool fullscreen;
			irr::video::E_DRIVER_TYPE driver;

			Video()
				: horizontal(800), vertical(600), bpp(16)
				, fullscreen(false), driver(irr::video::EDT_DIRECT3D9) {}
	} video;

	char host[30];
	unsigned short port;
	char username[MAX_NAME];
	char password[MAX_NAME];

	ClientConfig()
	{
		strcpy(host,"localhost");
		//strcpy(host,"insano-mmorpg.servegame.com");
		port=6661;
		username[0]=0;
		password[0]=0;
	}
	int load(const char *filename);
	int save(const char *filename);
};

#endif // CONFIG__H_INCLUDED
